package Code.Menu;

import org.jrabbit.base.managers.window.WindowManager;
import org.jrabbit.standard.game.main.world.World;
import org.jrabbit.standard.game.objects.text.TextSprite;

public class MainMenu extends World
{
	private Menu menu;
	
	public MainMenu()
	{
		menu = new Menu();
		addRenderable(menu);
		addUpdateable(menu);
		
		TextSprite title = new TextSprite("DEAD STEEL", "Title");
		title.location().set(50, WindowManager.getDisplayHeight() - 80);
		title.color().set(1f, 0.8f, 0);
		title.color().setAlpha(0.6f);
		title.useScreenCoords(true);
		addRenderable(title);
		
		TextSprite play = new TextSprite("Play", "Buttons");
		play.location().set(WindowManager.getDisplayWidth() - play.getWidth() - 50, 
				WindowManager.getDisplayHeight() - 50);
		play.color().set(1f, 0.8f, 0);
		play.color().setAlpha(0.3f);
		play.useScreenCoords(true);
		addRenderable(play);
	}
}
